package com.hfb.mashibing.alip8.designpattern._022state;

public class MainV1 {
    public static void main(String[] args) {

    }

    /**
     * 当追加新状态时，非常不方便
     */
    static class MM {
        String name;
        private enum MMState {HAPPY, SAD};
        MMState state;

        public void smile(){/* switch case */ }
        public void cry(){/* switch case */}
        public void say(){/* switch case */}
    }
}
